package bma.common.netty.thrift.dual;

import org.apache.thrift.TBase;

import bma.common.langutil.ai.stack.AIStack;

public interface NTSClient {

	public boolean isOpen();

	public void addCloseListener(NTSClientCloseListener lis);
	
	public void close();

	// return seqId
	public int write(AIStack<NTSResponse> stack, String name, int type,
			TBase data, int timeout);

	public void discard(int seqId);
}
